{% extends 'backend/base.html' %}


{% block article %}
    <table class="table table-striped table-hover">
    <thead>
        <tr>
            <th>标题</th>
            <th>评论数</th>
            <th>点赞数</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {% for article in page_queryset %}
            <tr>
            <td><a href="/{{ request.user.username }}/article/{{ article.pk }}/">{{ article.title }}</a></td>
            <td>{{ article.comment_num }}</td>
            <td>{{ article.up_num }}</td>
            <td>
                <a href="">编辑</a>
                <a href="">删除</a>
            </td>
            </tr>
        {% endfor %}

    </tbody>
    </table>
    <div class="pull-right">
        {{ page_obj.page_html | safe }}
    </div>

{% endblock %}